package 数据结构基础;

public class LinkList<E> extends AbstractList<E> {
    private int size = 0;
    private Node<E> head = new Node<>(null);

    @Override
    public int size() {
        return size;
    }

    @Override
    public void add(E e, int index) {
        if(index > size - 1)throw new IllegalArgumentException("插入的位置不合法！");
        Node<E> temp;
        Node<E> node = head;
        for (int i = 0;i<index;i++){

        }
    }

    @Override
    public E remove(int index) {
        return null;
    }

    @Override
    public E get(int index) {
        return null;
    }

    private class Node<E>{
        private E e;
        private Node<E> next;
        public Node(E e){
            this.e = e;
        }
    }
}
